Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crds custom annotations #3472

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Crds custom annotations #3472

wants to merge 14 commits into from

Conversation

GSZoominfo
Copy link

This PR will allow us to add custom annotations to the crds

use case:

  • adding argo cd annotations such as: argocd.argoproj.io/sync-options: ServerSideApply=true

@GSZoominfo
Copy link
Author

@mumoshu @toast-gear @rentziass @nikola-jokic
hey all - can someone please check this PR
it's a very small one and it could solve a lot of issues when using argo cd.

@asafhm
Copy link

asafhm commented Jun 8, 2024

Hi @GSZoominfo ,
I was wondering, won't setting ServerSideApply option in the ArgoCD Application level be enough?
If the main reason is to solve the infamous "Too long must have at most 262144 bytes" error, then setting this option in the application SyncOptions helped me with this very error in the Prometheus CRD

@thomaspetit
Copy link

thomaspetit commented Jul 5, 2024

Hi @GSZoominfo , I was wondering, won't setting ServerSideApply option in the ArgoCD Application level be enough? If the main reason is to solve the infamous "Too long must have at most 262144 bytes" error, then setting this option in the application SyncOptions helped me with this very error in the Prometheus CRD

You don't want to do this as setting it on Application level might break other functionalities like sync waves/hooks.
Reference to actual (open) issue: argoproj/argo-cd#13320

The approach chosen in this PR is a good one. We see similar implementations on prometheus, kyverno, argocd:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants